# curl -s https://ghproxy.net/https://raw.githubusercontent.com/kubescape/kubescape/master/install.sh | /bin/bash

## ==============helm 安装 docke 镜像源修改 ============

export namespace="kubescape-system"
export app_name="kubescape"
export repo="kubescape"
export helm="$repo/kubescape-operator"
export url="https://kubescape.github.io/helm-charts/"

helm repo remove $repo
helm repo add $repo $url
helm repo update $repo

helm upgrade --create-namespace --install --devel \
  -n $namespace $app_name $helm \
  --set clusterName=$(kubectl config current-context) \
  --set capabilities.continuousScan=enable \
  --set capabilities.runtimeDetection=enable \
  --set alertCRD.installDefault=true
